import { http } from '@/utils/request'
import type { FileType } from '@/types/file'

export const uploadFileAPI = (data: any) => {
  return http.request<FileType>('post', '/common/file/upload', { data }, false, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
